﻿namespace common
{
    public class bianyi_factory
    {
        public bianyi bianyi
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }

        public static bianyi get_bianyi(string type)
        {
            if (type == ".cs")
            {
                return new bianyi_cc();
            }
            else if (type == "net")
            {
                return new bianyi_net();
            }
            //else if (type == "tongxunlu")
            //{
            //    return new bianyi_tongxunlu();
            //}
            //else if (type == "c#")
            //{
            //    return new bianyi_cc();
            //}
            else
            {
                return new bianyi_cc();
            }
        }
    }
}